<?php $module = $this->uri->segment(2); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
	<title>Nodata Admin</title>
	<link rel="stylesheet" href="<?=base_url()?>static/css/reset.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="<?=base_url()?>static/css/style.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="<?=base_url()?>static/css/invalid.css" type="text/css" media="screen" />		
	<link rel="stylesheet" href="<?=base_url()?>static/css/blue.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="<?=base_url()?>static/css/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
	<!--[if lte IE 7]>
		<link rel="stylesheet" href="<?=base_url()?>static/css/ie.css" type="text/css" media="screen" />
	<![endif]-->
	<script type="text/javascript" src="<?=base_url()?>static/scripts/jquery-1.3.2.min.js"></script>
	<script type="text/javascript" src="<?=base_url()?>static/scripts/simpla.jquery.configuration.js"></script>
	<script type="text/javascript" src="<?=base_url()?>static/scripts/jquery.fancybox-1.3.4.pack.js"></script>
	<script type="text/javascript" src="<?=base_url()?>static/scripts/facebox.js"></script>
	<script type="text/javascript" src="<?=base_url()?>static/scripts/nodata.js"></script>
	<script type="text/javascript" src="<?=base_url()?>static/scripts/jquery.wysiwyg.js"></script>
	<!--[if IE 6]>
		<script type="text/javascript" src="<?=base_url()?>static/scripts/DD_belatedPNG_0.0.7a.js"></script>
		<script type="text/javascript">
			DD_belatedPNG.fix('.png_bg, img, li');
		</script>
	<![endif]-->
	<script type="text/javascript">
		var root = "<?=base_url()?>";
		var module = '<?=$module?>';
		$(document).ready(function(){
			//FancyBox
			$('.fancyboxClick').fancybox();
		});
		
	</script>
</head>
<body>
	<div id="body-wrapper">
		<div id="sidebar">
			<div id="sidebar-wrapper">
				<h1 id="sidebar-title"><a href="#">Nodata Admin</a></h1>
				<a href="#"><img id="logo" src="<?=base_url()?>static/images/logo.png" alt="Nodata Admin logo" /></a>
				<div id="profile-links">
					Hello, <a href="#" title="Edit your profile"><?=ucfirst($this->session->userdata('userInfo'))?></a><br />
					<a href="<?=base_url()?>" title="View the Site" target="_blank">View the Site</a> | <a href="<?=base_url().'admincp/logout'?>" title="Sign Out">Sign Out</a>
				</div>        
				<ul id="main-nav">
					<li>
						<a href="#" class="nav-top-item no-submenu">
							Dashboard
						</a>       
					</li>
					<li>
						<a href="#" class="nav-top-item">
							Pages
						</a>
						<ul>
							<li><a <?php if($module == "page"){ echo "class='current'";}?> href="<?=base_url().'admincp/page/update'?>">Create a new Page</a></li>
							<li><a href="#">Manage Pages</a></li>
							<li><a href="<?=base_url().'admincp/category/'?>">Category</a></li>
						</ul>
					</li>
					<li>
						<a href="#" class="nav-top-item <?php if($module == 'photo' || $module == 'album'){ echo "current";}?>">
							Image Gallery
						</a>
						<ul>
							<li><a <?php if($module == "photo"){ echo "class='current'";}?> href="<?=base_url().'admincp/photo'?>">Upload Images</a></li>
							<li><a <?php if($module == ""){ echo "class='current'";}?> href="<?=base_url().'admincp/category/detail/2'?>">Manage Galleries</a></li>
							<li><a <?php if($module == "album"){ echo "class='current'";}?> href="<?=base_url().'admincp/album'?>">Manage Albums</a></li>
							<li><a <?php if($module == ""){ echo "class='current'";}?> href="<?=base_url().'admincp/category/detail/2'?>">Gallery Settings</a></li>
						</ul>
					</li>
					<li>
						<a href="#" class="nav-top-item">
							Events Calendar
						</a>
						<ul>
							<li><a href="#">Calendar Overview</a></li>
							<li><a href="#">Add a new Event</a></li>
							<li><a href="#">Calendar Settings</a></li>
						</ul>
					</li>
					<li>
						<a href="#" class="nav-top-item">
							Settings
						</a>
						<ul>
							<li><a href="#">General</a></li>
							<li><a href="#">Design</a></li>
							<li><a href="#">Your Profile</a></li>
							<li><a href="<?=base_url().'admincp/account'?>">Users and Permissions</a></li>
						</ul>
					</li>      
				</ul> 
			</div>
		</div>
		<div id="main-content">
			<?=$content?>
		</div> 
	</div>
</body>
</html>
